package timer;

/**
 * @author Created by chenxin34 on 2018/3/24 下午4:24.
 */
public class WaitTest {
    public static void main(String[] args) throws Exception{
        Object lock = new Object();
        synchronized (lock){
            System.out.println("start wait");
            lock.wait(1000);
        }
    }
}
